package service;

import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Application {
  public static void main(String[] args){
      ConfigurableApplicationContext context = new ClassPathXmlApplicationContext("/project-one.xml");
      DemoService demoService = (DemoService) context.getBean("demoService");
      demoService.queryDb();
      
      context.close();
  }
}